const getters = {
  isLogin(state) {
    return !!(state.token)
  },
  // 当前的供应商信息
  curSupplierData(state) {
    return state.userInfo
  },
  // 当前的供应商等级
  curSupplierLevel(state, getters) {
    return getters.curSupplierData.vipType
  },
  getOpenId(state){
    return state.openId
  }
}
export default getters
